<template>
	<u-popup v-model.sync="visible" mode="bottom" background-color="#2C2D31" border-radius="14">
		<view class="share-popup">
			<!-- #ifdef MP-WEIXIN -->
			<view class="item">
				<button open-type="share">
					<image class="shareWrapItemIcon" src="https://de.ccbnd.net/jtwj/xcx/share/icon-wechat.png"></image>
				</button>
				<text class="shareWrapItemIconText">微信好友</text>
			</view>
			<!-- #endif -->
			<view class="item" @click="copyShareLink">
				<image class="shareWrapItemIcon" src="https://de.ccbnd.net/jtwj/xcx/share/icon-copyLink.png"></image>
				<text class="shareWrapItemIconText">复制链接</text>
			</view>

		</view>
	</u-popup>
</template>

<script>
	import shareJS from "@/utils/share.js"
	export default {
		mixins: [shareJS],
		data() {
			return {
				visible: false,
			};
		},
		
		methods: {
			open() {
				console.log(112233);
				this.visible = true;
			},

			close() {
				this.visible = false;
			},
		},
	};
</script>

<style lang="scss" scoped>
	.share-popup {
		padding: 30rpx 0;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		height: 190rpx;

		.item {
			button{
				background-color: transparent;
				&::after {
					border: none;
				}
			}
			font-size: 26rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			background-color: #FFF;
			
			image {
				margin-bottom: 10rpx;
				height: 80rpx;
				width: 80rpx;
			}
		}

	}
</style>
